@echo off

set GOARCH=arm64
set GOOS=linux

go mod tidy
go build -v -a -ldflags="-w -s -buildid=" -trimpath -o rule_arm64 .

set GOARCH=amd64
set GOOS=linux

go mod tidy
go build -v -a -ldflags="-w -s -buildid=" -trimpath -o rule_amd64 .

rem go build -a 可以强制编译